﻿using VDS.RDF;

namespace VirtuosoDal.Helpers
{
   internal static class LiteralHelper
   {
      public static string GetLiteral(object node)
      {
         if (node == null)
            return null;

         if (node is LiteralNode)
            return ((LiteralNode) node).Value;

         return node.ToString();
      }
   }
}